<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <title>Title</title>
    <script type="application/javascript" src="/js/jquery-1.11.1.js"></script>
</head>
<body>
<span id="mn" th:text="${mn}"></span>
<!--<span th:text="${LoginExpired}" ></span>-->
<span id="cmdCode">2051</span>
<button onclick="send()">发送</button>
<script type="application/javascript">
    function send() {
        alert($("#mn").html());
        $.ajax({
            url: "/sendCmd",
            data: {
                mn: $("#mn").html(),
                cmdCode: $("#cmdCode").html()
            }, success: function (data) {
                alert(data)
            }
        })
    }
</script>
</body>
</html>